<div class="row">
    <div class="col-md-12">
        <div class="table-responsive">
            <table class="table">
                <thead>
                <tr>
                    <th>奖品图片</th>
                    <th>奖品名称</th>
                    <th>奖品类型</th>
                    <th>奖品单价</th>
                    <th>奖品库存</th>
                    <th>过期时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @forelse($data as $item)
                    <tr>
                        <td><img style="width: 45px;height: 45px;" src="{{$item['image']}}" alt=""></td>
                        <td>{{$item['name']}}</td>
                        <td>{{$item['goods_type']}}</td>
                        <td>{{$item['price']}}</td>
                        <td>{{$item['goods_record']}}</td>
                        <td>{{$item['expired_date']}}天</td>
                        <td>
                            <div class="btn-group operate-group" id="{{$item['id']}}">
                                <div><a href="javascript:void(0);"
                                        class="buy operate-btn">购买</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                @empty
                    <tr>
                        <td colspan="10">暂时没有数据</td>
                    </tr>
                @endforelse
                </tbody>
            </table>
        </div>
    </div>
</div>